home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / misc / addtext.lha / Addtext / AddText.doc < prev    next >
Encoding:
Text File  |  1996-02-25  |  3.8 KB  |  107 lines

  1.  
  2.    *****************************************************************
  3.    *                                                               *
  4.    *       ADDTEXT                                                 *
  5.    *       -------                                                 *
  6.    *                                                               *
  7.    *       Adds appropriate print commands depending on required   *
  8.    *       code output.  User can select from Pascal, C or script  *
  9.    *       output.                                                 *
  10.    *                                                               *
  11.    *       Author: A N Peck                                        *
  12.    *                                                               *
  13.    *       Date: 09 Feb 1995                                       *
  14.    *                                                               *
  15.    ***************************************************************** 
  16.  
  17.    Many times have I written text for programs or script files, and then
  18.    had to add the printf, writeln or echo commands by hand.  I decided to
  19.    automate the process and AddText was born!
  20.  
  21.    Example
  22.    -------
  23.  
  24.    Let's say we have a text file called "Sheep.pme" which contains the
  25.    following tortured prose...
  26.  
  27.         Little Bo Peep was a weird little girl
  28.  
  29.              Who's main love interest was ewe
  30.  
  31.         How extraordinary this small canary
  32.  
  33.         Which it's bound tutu
  34.                            
  35.    ...which we would like to have in a program or script file.  Selecting
  36.    the Script option would produce a file which looks like...
  37.  
  38.         ; Courtesy of ADDTEXT - A N Peck (1995)
  39.         
  40.         echo ""
  41.         echo "        Little Bo Peep was a weird little girl"
  42.         echo ""
  43.         echo "             Who's main love interest was ewe"
  44.         echo ""
  45.         echo "        How extraordinary this small canary"
  46.         echo ""
  47.         echo "        Which it's bound tutu"
  48.         echo ""
  49.  
  50.    You could now execute this script file to produce the original text.
  51.  
  52.    The Pascal version would read...
  53.  
  54.         { Courtesy of ADDTEXT - A N Peck (1995) }
  55.         
  56.         Writeln ('');
  57.         Writeln ('        Little Bo Peep was a weird little girl');
  58.         Writeln ('');
  59.         Writeln ('             Who''s main love interest was ewe');
  60.         Writeln ('');
  61.         Writeln ('        How extraordinary this small canary');
  62.         Writeln ('');
  63.         Writeln ('        Which it''s bound tutu');
  64.         Writeln ('');
  65.  
  66.    Note that the extra apostrophes have been added.
  67.  
  68.    Finally the C option produces...
  69.  
  70.         /* Courtesy of ADDTEXT - A N Peck (1995) */
  71.         
  72.         Printf ("\n");
  73.         Printf ("        Little Bo Peep was a weird little girl\n");
  74.         Printf ("\n");
  75.         Printf ("             Who's main love interest was ewe\n");
  76.         Printf ("\n");
  77.         Printf ("        How extraordinary this small canary\n");
  78.         Printf ("\n");
  79.         Printf ("        Which it's bound tutu\n");
  80.         Printf ("\n");
  81.         
  82.    And that's all it does!  No washing of dishes or carrying out of dirty
  83.    linen, but perhaps a bit easier to insert text into your next program or
  84.    script file.
  85.  
  86.    The program was written in Assembly with help from Hextract (Chas A
  87.    Wyndham), EdwordPro (Martin Reddy), PhxAss/PhxLnk (Frank Wille),
  88.    Convbrush (David Kinder), Iconian (Chad Randall), DPaint (Electronic
  89.    Arts), and some others I've forgotten.  The source is provided for your
  90.    amusement.
  91.  
  92.    I hope you find this program useful.  I take no responsibility for it's
  93.    actions but it is freeware!  Enjoy...
  94.  
  95.  
  96.                           Anthony N Peck
  97.  
  98.                           68 Woralul St
  99.  
  100.                           Waramanga ACT 2611
  101.  
  102.                           Australia
  103.  
  104.                           E-mail: Anthony.Peck@Radford.act.edu.au
  105.  
  106.  
  107.